package com.yonyou.brigade.third_parties.tuniu.service;


import com.alibaba.fastjson.JSONObject;
import com.yonyou.brigade.basic_init.model.BriChannel;

import java.util.Map;

/**
 * 途牛单点登录
 *
 * Created by Administrator on 2018/11/1.
 */
public interface ITuniuPublicService {
    /**
     * 获取登录url
     * @param tenant
     * @param uid
     * @param config
     * @param pcOrH5
     * @return
     */
    String ssoLogin(String tenant, String uid, String config, String pcOrH5);

    //同步途牛用户
    void insertUser(Map params, String config);

    //更新途牛用户
    void updateUser(Map params, String config);

    void initDepart(BriChannel briChannel);

    String pushTravelApplyOrder(String tenant, String orgPk, JSONObject applyOrderJson);

    /**
     * 同步出差申请单
     * @param channel
     * @param tenant
     * @param orgpk
     * @param applyOrderJson
     * @return
     */
    JSONObject pushApplayOrder(BriChannel channel, String tenant, String orgpk, JSONObject applyOrderJson);

}
